/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-03-28 08:23:16
 * @LastEditors: voanit
 * @LastEditTime: 2022-03-29 18:00:20
 */
import request from "@/utils/request";
/**
 * @description: 登录
 * @param {*} data {modile, password}
 * @return {*} Promise
 */
export function loginApi(data) {
  return request({
    url: "/api/sys/login",
    method: "post",
    data,
  });
}

export function getInfo(token) {
  return request({
    url: "/api/sys/profile",
    method: "post",
    // params: { token: "12cdfde8-9d53-463e-a600-acc148a136a5" },
    // headers: {
    //   Authorization: "Bearer " + token,
    // },
  });
}

export function logout() {
  return request({
    url: "/vue-admin-template/user/logout",
    method: "post",
  });
}
